package com.thread.CountDownLatchDemo;

import java.util.concurrent.CountDownLatch;

/**
 * @Author milian
 * @Date 2021/7/31 0031 9:36
 */
public class mother extends Thread{
    private CountDownLatch downLatch;
    public mother(CountDownLatch downLatch) {
        this.downLatch = downLatch;
    }

    @Override
    public void run() {
        try {
            downLatch.await();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("妈妈收拾碗筷");
    }
}
